<h2><?php echo sprintf(__('%s\'s Posts',true),$user['User']['username']); ?></h2>
<p><?php
echo $paginator->counter(array(
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
));
?></p>
<table cellpadding="0" cellspacing="1">
<tr>
	<th><?php echo $paginator->sort('id');?></th>
	<th><?php echo $paginator->sort('category_id');?></th>
	<th><?php echo $paginator->sort('title');?></th>
	<th><?php echo $paginator->sort('modified');?></th>
</tr>
<?php
$i = 0;
foreach ($articles as $article):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<td><?php echo $article['Article']['id']; ?></td>
		<td><?php echo $html->link($categories[$article['Article']['category_id']], array('controller'=> 'category', 'action'=>'view', $article['Article']['category_id'])); ?></td>
		<td><?php echo $html->link($article['Article']['title'], array('controller'=> 'articles','action'=>'view', $article['Article']['id'])); ?></td>
		<td><?php echo $article['Article']['modified']; ?></td>
	</tr>
<?php endforeach; ?>
</table>
<div class="paging">
	<?php echo $paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next(__('next', true).' >>', array(), null, array('class'=>'disabled'));?>
</div>